package org.jflame.auth;

import org.jflame.auth.authc.Authenticator;
import org.jflame.auth.authc.SimpleAuthcInfo;
import org.jflame.auth.authz.SimpleRole;

import java.util.Set;

public interface AuthService extends Authenticator {

    /**
     * 授权，返回角色和它的权限
     * 
     * @param authInfo
     * @return
     */
    public abstract Set<? extends SimpleRole> getRoles(SimpleAuthcInfo authInfo);

}